package com.xique.door.project.sfm.bean.request;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class SfmInsertPeopleRequest {

    @NotBlank(message = "社区编号不能为空")
    private String communityNo;

    @NotBlank(message = "房屋编号不能为空")
    private String houseNo;

    @JsonProperty(value = "people_name")
    @JsonAlias(value = {"people_name", "peopleName"})
    @NotBlank(message = "姓名不能为空")
    private String peopleName;

    @JsonProperty(value = "people_phone")
    @JsonAlias(value = {"people_phone", "peoplePhone"})
    @NotBlank(message = "手机号码不能为空")
    private String peoplePhone;

    @JsonProperty(value = "people_sex")
    @JsonAlias(value = {"people_sex", "peopleSex"})
    @NotBlank(message = "性别不能为空")
    private String peopleSex;

    @JsonProperty(value = "people_photo")
    @JsonAlias(value = {"people_photo", "peoplePhoto"})
    private String peoplePhoto;

    @JsonProperty(value = "people_enabletalk")
    @JsonAlias(value = {"people_enabletalk", "peopleEnabletalk"})
    @NotBlank(message = "是否启用对讲不能为空")
    private String peopleEnabletalk;

    @JsonProperty(value = "people_talkpassword")
    @JsonAlias(value = {"people_talkpassword", "peopleTalkpassword"})
    private String peopleTalkpassword;

    @JsonProperty(value = "people_idcard")
    @JsonAlias(value = {"people_idcard", "peopleIdcard"})
    private String peopleIdcard;

    @JsonProperty(value = "people_iccard")
    @JsonAlias(value = {"people_iccard", "peopleIccard"})
    private String peopleIccard;

    @JsonProperty(value = "people_idcardphoto")
    @JsonAlias(value = {"people_idcardphoto", "peopleIdcardphoto"})
    private String peopleIdcardphoto;

    @JsonProperty(value = "people_startdate")
    @JsonAlias(value = {"people_startdate", "peopleStartdate"})
    private String peopleStartdate;

    @JsonProperty(value = "people_effdate")
    @JsonAlias(value = {"people_effdate", "peopleEffdate"})
    private String peopleEffdate;

    @JsonProperty(value = "people_type")
    @JsonAlias(value = {"people_type", "peopleType"})
    private String peopleType;

    @JsonProperty(value = "people_sort")
    @JsonAlias(value = {"people_sort", "peopleSort"})
    private String peopleSort;
}
